package com.yc.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yc.dao.DishesinfoMapper;
import com.yc.model.Dishesinfo;
import com.yc.service.DishesService;
@Service
public class DishesServiceImpl implements DishesService {
	@Autowired
	private DishesinfoMapper df;
	@Override
	public int addDishes(Dishesinfo dsf) {
		
		return df.addCaidan(dsf);
	}
	@Override
	public int getMaxPage(int i) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public List<Dishesinfo> findByAllCaidanService() {
		
		return df.selectByAllShucai();
	}
	@Override
	public void ModifyDishesById(Dishesinfo record) {
		// TODO Auto-generated method stub
		 df.modifyDishes(record);
	}
	@Override
	public Dishesinfo getDishesById(Integer dishesId) {
		// TODO Auto-generated method stub
		return df.selectByIdShucai(dishesId);
	}

	
}
